package org.gd.redis.local;

public class LocalRedisTest {

    public static void main(String...args) {
        String session = "session";
        String key = "key";

        LocalRedis.set(session, key, "value");
        for(int i=0; i<10; i++) {
            Integer count = LocalRedis.hincrBy(session, key, 1);
            System.out.println(count);
            if(count >= 3) {
                System.out.println("Loop is over!");
                break;
            }
        }
        System.out.println(LocalRedis.get(session, key));
    }
}
